import turtle
turtle.setup(850, 350)
turtle.penup()
turtle.fd(0)
turtle.pendown()
turtle.pensize(25)
turtle.pencolor("purple")
turtle.seth(-40)
for i in range(4):
    turtle.circle(40.80)
    turtle.circle(-40.80)
turtle.circle(40, 80 / 2)
turtle.fd(40)
turtle.circle(16, 180)
turtle.fd(40 * 5 / 10)
turtle.done()